from django.conf.urls import patterns, include, url
from django.conf.urls.static import static
from main.views import thumb_manage
from main.models import Thumb
from django.contrib import admin
import settings

# This will be relevant later, I'm supposing...
admin.autodiscover()

urlpatterns = patterns('',
                       (r'^$', thumb_manage),
                       (r'^admin/', include(admin.site.urls)),
                       (r'^static/(?P<path>.*)$', 'django.views.static.serve',
                        {'document_root': settings.STATIC_ROOT}),


    # Examples:
    # url(r'^$', 'gallagry.views.home', name='home'),
    # url(r'^gallagry/', include('gallagry.foo.urls')),

    # Uncomment the admin/doc line below to enable admin documentation:
    # url(r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    # url(r'^admin/', include(admin.site.urls)),
) + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
